import { _decorator, Component, Node } from 'cc';
import DialogBase from '../../cocos-libs/_cmpt/ui/base/DialogBase';
import _layer from '../../cocos-libs/_cmpt/_layer';
import { DialogName } from '../default/Default';
import { bind } from '../../cocos-libs/_/_decorators';
const { ccclass, property } = _decorator;

@ccclass('RedPacketDialog')
export class RedPacketDialog extends DialogBase {

    @bind()
    private btn_shouxia!: Node;

    protected start(): void {
        super.start();
        this.btn_shouxia.click(this.onShouXiaClicked, this);
    }

    async onShouXiaClicked() {
        this.onClickClose();
        _layer.inst.openDialogAsync({ path: DialogName.shoppingDialog });
    }


}


